package repository

import "github.com/yourusername/book-management-system/internal/domain/model"

type BorrowRepository interface {
	Create(record *model.BorrowRecord) error
	Update(record *model.BorrowRecord) error
	FindByID(id uint) (*model.BorrowRecord, error)
	FindByBookID(bookID uint) (*model.BorrowRecord, error)
	FindByUserID(userID uint, page, pageSize int) ([]*model.BorrowRecord, int64, error)
	FindOverdueRecords() ([]*model.BorrowRecord, error)
}
